﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Magnetic : MonoBehaviour {

    public enum Mode {
        None,
        North,//Blue
        South//Red
    }

    public static Mode mode;

    public Mode magnetMode = Mode.North;

    public Transform[] effectAreas;

    private void Awake() {
        OnMagneticSetuped();
    }

    public void OnMagneticSetuped() {
        bool same = mode == magnetMode;
        effectAreas[0].gameObject.SetActive(same);
        effectAreas[1].gameObject.SetActive(!same);
    }

}
